﻿<Window x:Class="SmartCardClient.Views.MainView"
		xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
		xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
		Title="MainView" Height="300" Width="300">
	
	<Window.Resources>
		<ResourceDictionary Source="../ViewResources.xaml"/>
	</Window.Resources>
	
	<DockPanel>
		<DockPanel DockPanel.Dock="Top" KeyboardNavigation.TabNavigation="None">
			<Menu Height="50" VerticalAlignment="Top">
				<MenuItem Name="_miConnect" Command="{Binding Path=SelectCardCommand}">
					<MenuItem.Header>
						<StackPanel>
							<Image Width="20" Height="20" Source="./Media/SmartCardConnect.png"/>
							<ContentPresenter Content="Select Card"/>
						</StackPanel>
					</MenuItem.Header>
				</MenuItem>
				<MenuItem Name="_miDisconnect">
					<MenuItem.Header>
						<StackPanel>
							<Image Width="20" Height="20" Source="./Media/SmartCardDisconnect.png"/>
							<ContentPresenter Content="Disconnect"/>
						</StackPanel>
					</MenuItem.Header>
				</MenuItem>
			</Menu>
		</DockPanel>
		
		<Grid Margin="4">
			<Grid.RowDefinitions>
				<RowDefinition Height="auto"/>
				<RowDefinition Height="*"/>
			</Grid.RowDefinitions>
		</Grid>
		
		<HeaderedContentControl
			Content="{Binding Path=FeatureViewModels}"
			ContentTemplate="{StaticResource FeaturesTemplate}"
			Header="Features"/>			
	</DockPanel>
</Window>
